package com.ts.api.http.receive.biz;

import com.gitee.apanlh.util.algorithm.encrypt.symmetric.AES;
import com.gitee.apanlh.web.model.vo.RequestVO;
import com.ts.api.module.api.convert.receive.entity.ApiReceiveDecrypt;

import java.util.Map;

/**
 * @ Author 江小游
 * @ Date 2025/6/12 09:40
 * 没有固价 预留
 */
//@Service("1969356941301796864")
public class ApiReceiveMaskMaXiaoMi4A extends ApiReceiveMaskMaXiaoMi {
    private static final String SECRET_KEY = "1234567890abcdef";

    @Override
    public ApiReceiveDecrypt decrypt(Map<String, String> paramMap, RequestVO requestVO) throws Exception {
        String data = paramMap.get("data");
        AES aes = AES.createEcb(SECRET_KEY.getBytes());
        String decrypt = aes.decryptFromBase64Str(data);
        return new ApiReceiveDecrypt(decrypt);
    }
}



